package com.fantastic.common.exception;

import com.fantastic.common.exception.enums.RespStatusInfo;

/**
 * @author: rxx
 * @since: 2024/5/22 09:56
 * @description: 文件类型不支持异常
 */
public class FileTypeException extends AbstractMyException {
    /**
     * 响应状态枚举
     */
    private RespStatusInfo responseStatusEnum;

    public FileTypeException(RespStatusInfo responseStatusEnum) {
        super(responseStatusEnum.getMessage());
        this.responseStatusEnum = responseStatusEnum;
    }
    /**
     * 获取响应状态枚举
     *
     * @return
     */
    public RespStatusInfo getResponseStatusEnum() {
        return responseStatusEnum;
    }
}
